  <!-- 首页的图标栏 -->
<template>
  <div class="s-27f7c911" @click="$router.push(icon.path)">
    <div class="s77141dbd">
      <img alt="" title="" :src="icon.img" class="s-34f4f4a1" />
    </div>
    <div class="s622416cd">{{ icon.name }}</div>
  </div>
</template>

<script>
export default {
  props: ['icon'],
}
</script>

<style lang="scss" scoped>
.s-27f7c911 {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  box-sizing: border-box;
  width: 25%;
  font-size: 0;
  padding: 10px 0;
}
.s77141dbd {
  display: inline-block;
  width: 45px;
  height: 45px;
  font-size: 0;
  overflow: hidden;
}
.s622416cd {
  font-size: 12px;
  color: #4a4945;
  margin-top: 5px;
  line-height: 16px;
}
.s-34f4f4a1 {
  width: 100%;
  overflow: hidden;
}
</style>